
package cs.ohms.subsystem.validation.annotation;


import cs.ohms.subsystem.validation.NSCharCheckValidation;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

@Target({ ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.ANNOTATION_TYPE, ElementType.TYPE_USE })
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = NSCharCheckValidation.class)
@Documented
public @interface NSCharCheck {
    String message() default "check constraint not satisfied";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default { };

    char[] value();
}
